package com.ruitu.mall_98_2.mvp.contract;

import com.beanu.arad.base.BaseModel;
import com.beanu.arad.base.BasePresenter;
import com.beanu.arad.base.BaseView;
import com.ruitu.router_module.bean.api.BaseResult;

import java.io.File;

import okhttp3.MultipartBody;
import rx.Observable;

public interface AccountSettingContract {
    interface Model extends BaseModel{
        Observable<BaseResult> updateUserHead(MultipartBody multipartBody);

        Observable<BaseResult> updateUserInfo( String id, String nickName, String sex);
    }

    interface View extends BaseView{
        void setHeadImage();

        void setUserSuc();
    }

    abstract class Presenter extends BasePresenter<View,Model>{

        public abstract MultipartBody updateUserHead(String id, File file);

        public abstract void updateUserHead(MultipartBody multipartBody);

        public abstract void updateUserInfo( String id, String nickName, String sex);
    }
}
